/********************************************************************************
* File Name:	dlgfoodmanger.h
* Description:	第十一章实例训练
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1
* E_mail: openlinux2011@gmail.com
********************************************************************************/
#ifndef DLGFOODMANGER_H
#define DLGFOODMANGER_H

#include <QDialog>
#include <QSqlTableModel>

namespace Ui {
    class DlgFoodManger;
}

class DlgFoodManger : public QDialog
{
    Q_OBJECT

public:
    explicit DlgFoodManger(QWidget *parent = 0);
    ~DlgFoodManger();

private slots:
    void on_pbFresh_clicked();

    void on_pbAdd_clicked();

    void on_pbUpdate_Delete_clicked();

    void on_pbExit_clicked();

    //显示食物列表槽函数
    void type(int index);


private:
    Ui::DlgFoodManger *ui;
    QSqlTableModel *model;

};

#endif // DLGFOODMANGER_H
